<template>
  <div>
    <keep-alive include="Home">
       <!-- 路由占位符 -->
<router-view></router-view>
    </keep-alive>

   <!-- 标签栏 -->
   <van-tabbar  route v-model="active">
  <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
  <van-tabbar-item icon="user-o" to="/User">我的</van-tabbar-item>
</van-tabbar>
  </div>
</template>

<script>
export default {
   data() {
    return {
      active: 0,
    };
  },
}
</script>

<style lang="less" scoped>
</style>
